<template>
    <a-drawer width="100%" :body-style="{ background: '#f0f2f5' }" :visible="isShow"
        placement="right" :get-container="false" :style="{ position: 'absolute'}" :closable="false"
        :footer-style="{ textAlign: 'right' }">

  
        <a-card class="mb-2">
            <a-row :gutter="24" class="text-center">
                <a-col :span="20">
                    <!-- <div class=" mb-2 text-left font-semibold  text-lg  flex flex-row"
                        style="font-weight: 600;font-size: 16px;">
                        {{info.name}}
                    </div> -->
                    <div class="flex flex-row">
                        <div class="w-32 ">
                            <div class="mb-2">供应商名称</div>
                            <div style="font-weight: 600;">{{info.supplierName}}</div>
                        </div>
                  
                        <div class="w-36 ">
                            <div class="mb-2">合同金额（万元）</div>
                            <div style="font-weight: 600;">{{info.amount}}</div>
                        </div>
                        <div class="w-36   ">
                            <div class="mb-2">已付款金额</div>
                            <div style="font-weight: 600;">{{info.amount-info.budgetRemain}}</div>
                        </div>
                  
                        <div class="w-32   ">
                            <div class="mb-2">申请人</div>
                            <div style="font-weight: 600;">{{info.createUserName}}</div>
                        </div>
                        <div class="w-32   ">
                            <div class="mb-2">采购负责人</div>
                            <div style="font-weight: 600;">{{info.director}}</div>
                        </div>

                        
                        <div class="w-32 ">
                            <div class="mb-2">提审状态</div>
                            <div style="font-weight: 600;"> {{info.stateText}} </div>
                        </div>
                        <div class="w-32">
                            <div class="mb-2">所属部门</div>
                            <div style="font-weight: 600;">{{info.orgName}}</div>
                        </div>
                    </div>
                </a-col>
                <a-col :span="4" class="text-right">
                    <a-button @click="isShow = false">返回</a-button>
                </a-col>
            </a-row>
        </a-card>
        <a-card class="mb-2">
            <a-tabs>
                <a-tab-pane key="1" tab="详细信息">
                    <edit ref="editRef" :disabled="true"></edit>
                </a-tab-pane>
                <a-tab-pane key="2" tab="增补合同">

                    <supplementContract ></supplementContract>
                </a-tab-pane>
                <a-tab-pane key="3" tab="付款记录">
                    <ticketReceiptRecords ></ticketReceiptRecords>
                </a-tab-pane>
                <a-tab-pane key="4" tab="收票记录">
                    <!-- <invoicing ></invoicing> -->
                    <paymentRecords ></paymentRecords>
                </a-tab-pane>
                <a-tab-pane key="5" tab="审核流程"> 

                    <taskInfo :id="info.processId">
                    </taskInfo>
                </a-tab-pane>
                
            </a-tabs> </a-card>
 
    </a-drawer>
</template>
<script setup>

import edit from '@/views/flw/customform/contract/components/purchase/edit.vue'
import supplementContract from './supplementContract.vue';
import paymentRecords from './paymentRecords.vue';
import ticketReceiptRecords from './ticketReceiptRecords.vue';
import taskInfo from '@/components/Task/info.vue'
const editRef = ref()
const isShow = ref(false)
const info=ref({})
const show = (record) => {
    isShow.value = true
    editRef.value.show(record)
    info.value={...record}
}
defineExpose({
    show
});

</script>./edit2.vue